import * as constants from './actionTypes';

export const fetchData=()=>({
    type: constants.FETCH_DATA
})

export const fetchDataRequest=()=>({
    type: constants.FETCH_DATA_REQUEST
})

export const fetchDataSuccess=(data)=>({
    type: constants.FETCH_DATA_SUCCESS,
    data
})

export const fetchDataFailure=()=>({
    type: constants.FETCH_DATA_FAILURE
})
